<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <meta charset="UTF-8">
  <title>Open-SkyEye Wiki</title>
  <link rel="icon" href="_media/icon.png">
  <!-- Theme -->
  <link rel="stylesheet" href="_styles/vue.css">
  <link rel="stylesheet" href="_styles/sidebar.min.css">
  <!-- <link rel="stylesheet" href="_styles/sweetalert.min.css" type='text/css' media='all' /> -->
</head>
<style>
  .pt-message {
    display: none;
    width: 100%;
    height: 50px;
    background: #ffe8d8;
    color: #f86e45;
    text-align: center;
    border: 1px dotted #fdab63;
    z-index: 99999;
  }

  .pt-message p {
    margin: 0;
    line-height: 50px;
    font-size: 20px;
  }
</style>

<body>
  <div id="pt-message" class="pt-message">
    <p id="msg"></p>
  </div>
  <div id="app">Loading ...</div>
  <script>
    window.$docsify = {
      coverpage: true,
      auto2top: true,
      executeScript: true,
      relativePath: true,
      loadNavbar: true,
      loadSidebar: true,
      mergeNavbar: true,
      themeColor: '#00c2cb',
      maxLevel: 6,
      subMaxLevel: 3,
      name: '<span> Wiki Home </span>',
      coverpage: ['/'],
      requestHeaders: {
        'cache-control': 'max-age=5',
      },
      scrollToTop: {
        auto: true,
        text: 'Top',
        right: 15,
        bottom: 15,
        offset: 500
      },
      'flexible-alerts': {
        style: 'flat'
      },
      tabs: {
        persist: true,      // default
        sync: true,      // default
        theme: 'classic', // default
        tabComments: true,      // default
        tabHeadings: true       // default
      },
      search: {
        noData: {
          '/': '没有结果'
        },
        depth: 6,
        paths: 'auto',
        placeholder: {
          '/': '搜索'
        }
      },
      plugins: [
        function (hook, vm) {
            hook.beforeEach(function (html) {
              //Get browser basic properties
              var brower = navigator.userAgent;
              //If it's not Google, Firefox or compass browser, you'll be prompted.
              if (brower.toLowerCase().indexOf("chrome") < 0 && brower.toLowerCase().indexOf("firefox") < 0 && brower.toLowerCase().indexOf("safari") < 0) {
                var msg = document.getElementById("msg");
                msg.innerHTML = "你的浏览器不兼容，请使用 Chrome,Firefox,Safari 等浏览器浏览。";
                document.getElementsByClassName("pt-message")[0].style.display = "block";
                setInterval('transTip()', 1000);
              }
              var url = 'https://gitee.com/open-skyeye/wiki/edit/master/' + vm.route.file
              var editHtml = '[:pencil: 修改此文档 ](' + url + ') &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[:page_facing_up:「了解Wiki规范」 ](/docs/zh-cn/wiki/text.md)\n'

              return '\n\n' +
                editHtml +
                html +
                '\n\n----\n' +
                '> 本文采用[知识共享署名-非商业性使用 4.0 国际许可协议](http://creativecommons.org/licenses/by-nc/4.0/)进行许可。\n\n' + 
                '> 我有疑问：  ' +
                '[查看文档 issues](https://gitee.com/open-skyeye/wiki/issues) &nbsp;&nbsp;&nbsp;' +
                '[查看代码 issues](https://gitee.com/open-skyeye/code/issues)'
            })
        }
      ]
    }
  </script>
  <script src="_scripts/docsify.min.js"></script>
  <script src="_scripts/search.min.js"></script>
  <script src="_scripts/emoji.min.js"></script>
  <script src="_scripts/prism-c.min.js"></script>
  <script src="_scripts/docsify-tabs.js"></script>
  <script src="_scripts/docsify-sidebar-collapse.min.js"></script>
  <script src="_scripts/docsify-scroll-to-top.min.js"></script>
  <script src="_scripts/docsify-copy-code.js"></script>
  <!-- <script src="_scripts/sweetalert.min.js"></script>
  <script>
    document.body.oncopy = function () {
      swal("复制成功 🎉",
        "如果你觉得本仓库不错，那就来 GitHub 给个 Star 吧 😊",
        "success");
    };
  </script> -->
  <script src="_scripts/zoom-image.min.js"></script>
  <script src="_scripts/external-script.min.js"></script>
  <script src="_scripts/sweetalert.min.js"></script>
  <script src="_scripts/docsify-plugin-flexible-alerts.min.js"></script>

</body>

</html>